package dao.CreditDao._stub;

import PO.CreditPO;
import dao.CreditDao.CreditDao;
import util.ourIterator.ConcreteAggregate;
import  util.ourIterator.List;

import java.util.Iterator;

/**
 * 
 * @author insomnia
 * @version Oct 16,2016
 */
public class CreditDao_stub implements CreditDao{
	/**
	 * 显示该用户所有的信用记录
	 * @param clientName
	 * @return
	 * @author insomnia
	 */


	public util.ourIterator.Iterator showCreditInfo(String clientName) {
		List list=new ConcreteAggregate();
		list.add(new CreditPO("wenlongli","201611021953241111","201611241954","chexiao"));
		list.add(new CreditPO("hanleima","201612021953241111","201611241954","shensuchenggong"));
		list.add(new CreditPO("weiminli","201610021953241111","201611241954","chexiao"));
		list.add(new CreditPO("yingchenlu","201604021953241111","201611241954","zhixingdingdan"));
		return list.iterator();
	}

	/**
	 * 添加新的信用记录
	 * @param credit
	 * @return
	 * @author insomnia
	 */
	public boolean  addNewCreditInfo(CreditPO credit){
		return true;
	}

	

}
